function []=save_eye_analysis(fname,pupil_diam,pupil_pos,blink,iframe_times)
try
    save(fname,'pupil_diam','pupil_pos','blink','iframe_times','-append','-v7.3');
catch
    save(fname,'pupil_diam','pupil_pos','blink','iframe_times','-v7.3');
end
disp('Saved eye analysis');